# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-crypt-openssl-x509
_pkgname=Crypt-OpenSSL-X509
pkgver=1.908
pkgrel=5
pkgdesc="Perl extension to OpenSSL's X509 API."
arch=('x86_64' 'aarch64')
url='https://metacpan.org/pod/Crypt::OpenSSL::X509'
license=('perl_5')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/J/JO/JONASBN/$_pkgname-$pkgver.tar.gz")
sha512sums=('77fc1f9eab616eb11e90417c9ee81b8cc4f7831f53f4f5b58eee49aecea917072d0bacb183916f59909bd375ea3d8a2863ad3a12b480f7ff03bef0140433a7a4')

build() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

package() {
  cd "$_pkgname-$pkgver"

  make install DESTDIR="$pkgdir"
}

